core: Don't call unlink() on directory if it already exists
authorColin Walters <walters@verbum.org>
Tue, 6 Mar 2012 16:33:42 +0000 (11:33 -0500)
committerColin Walters <walters@verbum.org>
Tue, 6 Mar 2012 16:59:06 +0000 (11:59 -0500)
commit83fb6d56e1e57b20f0f1c24bcaa0d02abcb02cca
tree1c4fd0c63ea68a0d18bfff32d8fe37295b1c7253
parent1513f29495eb7a49b615cdaf11508f12ca1a620a
core: Don't call unlink() on directory if it already exists

If we fail to make a directory because it exists, we shouldn't call
unlink() on it.
src/libostree/ostree-core.c